export default () => {
  const storageTokenKey = "__user_token__";

  const state = reactive({
    authList: [],
    token: "",
    userInfo: {},
    department: {},
  });

  const methods = {
    login: () => {},
  };

  watchEffect(() => window.localStorage.setItem(storageTokenKey, state.token));

  return state;
};
